import time
from threading import Thread

def sing():
    for i in range(5):
        print('is sing.....')
        time.sleep(1)

def dance():
    for i in range(5):
        print('is dacing.....')
        time.sleep(1)

if __name__ == '__main__':
    t1=Thread(target=sing)
    t2=Thread(target=dance)
    start_time=time.time()
    t1.start()
    t2.start()
    t1.join()
    t2.join()
    print(f'程序运行了{time.time()-start_time}s')